package game.players.cpu.opponent;

import com.uqbar.vainilla.DeltaState;
import com.uqbar.vainilla.appearances.Sprite;

import game.players.SoccerPlayer;

public class WithoutBallStationaryCPUOpp extends WithoutBallAbstractMovingCPUOpp {
	
	private int timer = 5;

	public WithoutBallStationaryCPUOpp(SoccerPlayer player) {
		super(player, 0, 0);
		this.getPlayer().setAppearance(Sprite.fromImage("/images/goal3_caminando3.png").crop(0, 1, 34, 65).scale(1.5).flipHorizontally());
	}
	
	@Override
	public void update(DeltaState deltaState) {
		if (this.timer <= 0)
			super.update(deltaState);
		timer--;
	}

	@Override
	public boolean isRight() {
		return false;
	}

}
